﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.Traceability.Domain
{
    /// <summary>
    /// 企业表
    /// </summary>
    public class Enterprise
    {
        /// <summary>
        /// 企业主键
        /// </summary>
        [Key]
        public int EnterpriseId { get; set; }
        /// <summary>
        /// 企业负责人
        /// </summary>
        public string EnterpriseChargePerson { get; set; }
        /// <summary>
        /// 存栏数量
        /// </summary>
        public int StockNumber { get; set; }
        /// <summary>
        /// 公司名称
        /// </summary>
        public string EnterpriseName { get; set; }
        /// <summary>
        /// 生产许可证号
        /// </summary>
        public string ProductionLicense { get; set; }
        /// <summary>
        /// 公司地址
        /// </summary>
        public string EnterpriseUrl { get; set; }
        /// <summary>
        /// 成立时间
        /// </summary>
        public DateTime EstablishTime { get; set; }
        /// <summary>
        /// 公司归属(表外键)
        /// </summary>
        public int Affiliation { get; set; }
        
    }
}
